package com.webshopping.service.goods;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.webshopping.entry.Advertisement;
import com.webshopping.entry.AttributeMetadata;
import com.webshopping.mapper.AdvertisementMapper;


@Service
public class AdvertisementService {

	@Autowired
	private AdvertisementMapper advertisementMapper;
	
	public int getCount(){
		return advertisementMapper.getCount();
	}
	public List<Advertisement> query(){
		return advertisementMapper.query();
	}
	
	public int add(Advertisement at){
		return advertisementMapper.add(at);
	}
	
	public int delete(int goodsTypeId){
		return advertisementMapper.delete(goodsTypeId);
	}
}
